projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abaaba2
)
(line-number-at-pos): Doc fix.
author
Richard M. Stallman
<rms@gnu.org>
Sun, 20 Aug 2006 12:16:58 +0000
(12:16 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 20 Aug 2006 12:16:58 +0000
(12:16 +0000)
lisp/simple.el
patch
|
blob
|
history
diff --git
a/lisp/simple.el
b/lisp/simple.el
index f1b80968ff13b05e4db85ad1531c16bcd724badc..3e19a8573e5f0b2a5221c41620d0a1b85122f855 100644
(file)
--- a/
lisp/simple.el
+++ b/
lisp/simple.el
@@
-899,7
+899,9
@@
and the greater of them is not at the start of a line."
(defun line-number-at-pos (&optional pos)
"Return (narrowed) buffer line number at position POS.
-If POS is nil, use current buffer location."
+If POS is nil, use current buffer location.
+Counting starts at (point-min), so the value refers
+to the contents of the accessible portion of the buffer."
(let ((opoint (or pos (point))) start)
(save-excursion
(goto-char (point-min))